import Vue from 'vue';
import Route from "vue-router";
Vue.use(Route)

// 定义路由规则
const routes=[
    {
        path:'/category',
        component:()=>import('@/components/category/category.vue')
    },
    {
        path:'/dish',
        component:()=>import('@/components/dish/dish.vue')
    }
]

// 创建路由器对象
const router = new Route({
    mode:'history',
    routes
})

export default router